package com.hd.service.impl;

import com.hd.dao.LoginDao;
import com.hd.entity.User;
import com.hd.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceimpl implements LoginService {
    @Autowired
    private LoginDao loginDao;


//    登录
    @Override
    public User login(String name) {
        return loginDao.findByUsername(name);
    }
}
